<template>
  <div class="strut-div" :id="config.id"></div>
</template>
<script>
  import echarts from 'echarts'
  export default {
    name: 'topFiveChart',
    props: {
      config: {
        type: Object,
        default: {}
      }
    },
    mounted() {
      this.chart = echarts.init(document.getElementById(this.config.id));
    },
    data() {
      return {
        echart: null
      }
    },
    methods: {
      initChart() {
        let option = this.config.option;

        this.chart.setOption(option);
      }
    }
  }

</script>
